package Types;

public class DDI {

    String id;
    String id_firstEnt, id_secondEnt, type_text;
    Entity firstEnt, secondEnt;
    DDItypes type;

    public DDI() {
    }

    public String getType_text() {
        return type_text;
    }

    public void setType_text(String type_text) {
        this.type_text = type_text;
        if (type_text.equalsIgnoreCase("advise")) {
            this.type = DDItypes.advise;
        }
        if (type_text.equalsIgnoreCase("int")) {
            this.type = DDItypes.intt;
        }
        if (type_text.equalsIgnoreCase("mechanism")) {
            this.type = DDItypes.mechanism;
        }
        if (type_text.equalsIgnoreCase("effect")) {
            this.type = DDItypes.effect;
        }
    }

    public Entity getFirstEnt() {
        return firstEnt;
    }

    public String getId_firstEnt() {
        return id_firstEnt;
    }

    public void setId_firstEnt(String id_firstEnt) {
        this.id_firstEnt = id_firstEnt;
    }

    public String getId_secondEnt() {
        return id_secondEnt;
    }

    public void setId_secondEnt(String id_secondEnt) {
        this.id_secondEnt = id_secondEnt;
    }

    public void setFirstEnt(Entity firstEnt) {
        this.firstEnt = firstEnt;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Entity getSecondEnt() {
        return secondEnt;
    }

    public void setSecondEnt(Entity secondEnt) {
        this.secondEnt = secondEnt;
    }

    public DDItypes getType() {
        return type;
    }

    public void setType(DDItypes type) {
        this.type = type;
    }
}
